import { App } from 'vue'

interface myGlobalFuncType {
  install: void
}
/* 歌曲 url 后面传入尺寸参数，请求小尺寸图片，节省性能 */
let myGlobalFunc = {}
myGlobalFunc.install = function (app) {
  function registerFunc(app: any): void {
    const changeSize = (url: String, size: number) => {
      return url + `?param=${size}x${size}`
    }

    app.prototype.changeSize = changeSize
  }
}

export default myGlobalFunc
